package GUI;

public class ControlRemote implements Runnable{
	private boolean run = true;

	@Override
	public void run() {
		run = true;
		while(run){
			synchronized (this) {
				try {
					System.out.println("waiting");
					wait();
					System.out.println("stop waiting");
				//	RemoteGUI.openShell();
				} catch (InterruptedException e) {
					System.out.println("interupt waiting");
				}
			}
		}
		
	}

	public void setRun(boolean run) {
		this.run = run;
	}
}
